package com.ycy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;
import java.io.IOException;

@WebFilter(filterName = "piceaFilter", urlPatterns = "/*")
public class YcyFilter implements Filter {

  Logger logger = LoggerFactory.getLogger(this.getClass());

  @Override
  public void init(FilterConfig filterConfig) {

  }

  @Override
  public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
    logger.warn(" 过滤器 。。。");
    chain.doFilter(request, response);
  }

  @Override
  public void destroy() {

  }

}
